
<div class="form-row" id="delete-row">
  <label class="required" for="ringtone_delete">Trạng thái xoá</label>
  <div class="content">
        <?php
            if (!isset($enabled_list))
            {
            	$enabled_list = array(0=> 'Không xóa', 1 => 'Xoá bởi admin', 2 => 'Xóa bởi người dùng');
            	#$enabled_list = array(0=> 'Không xóa', 1 => 'Xoá bởi admin');
			}
	
			if (!isset($right_value))
			{
				$right_value = 2;
			}
            #echo select_tag('ringtone[delete]', options_for_select($enabled_list, $delete_status), array('id' => 'delete-status-select','class' => 'full', 'onchange' => "showOrHideReasonRow(this, 'delete_info', " . $right_value .");"));
            if($delete_status != 2){
            	echo select_tag('ringtone[delete]', options_for_select($enabled_list, $delete_status), array('id' => 'delete-status-select','class' => 'full', 'onchange' => "showapp(this);",'disabled' => 'disabled'));
            }else{
            	echo select_tag('ringtone[delete]', options_for_select($enabled_list, $delete_status), array('id' => 'delete-status-select','class' => 'full', 'onchange' => "showapp(this);"));
            }
            
        ?>
  </div>
</div>

<div id="delete_info" style="display: none">
	<div class="form-row">
	  <label class="required" for="delete_reason">Lý do xoá</label>
	  <div class="content">
	  	<select name='delete_reason' id='delete_reason' onchange="selectReason(this, 'delete_description');">
			<option value="">Lý do xóa</option>
        	<?php 
			foreach($list_reasons as $item): ?>
			<option value="<?php echo $item->getTitle() ?>"><?php echo $item->getTitle() ?></option>
			<?php endforeach; ?>
		</select>
	  </div>
	</div>
	<div class="form-row">
	  <label class="required" for="ringtone[delete_description]">Mô tả</label>
	  <div class="content">
	        <?php 
	            if (!isset($delete_description) || empty($delete_description)):
	                $delete_description = '...nhập thông tin mô tả ở đây';
	            endif;
	        ?>
			<textarea   cols="38" rows="3" id="delete_description" name="ringtone[delete_description]"><?php echo $delete_description?></textarea>
	  </div>
	</div>
</div>
